package org.jeecg.modules.basic.demo.bed.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 床位信息
 * @Author: jeecg-boot
 * @Date:   2021-01-20
 * @Version: V1.0
 */
@Data
@TableName("lwgy_base_bed")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="lwgy_base_bed对象", description="床位信息")
public class LwgyBaseBed implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**学校*/
	@Excel(name = "学校", width = 15)
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
    @ApiModelProperty(value = "学校")
    private String schoolId;
	/**校区*/
	@Excel(name = "校区", width = 15)
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
    @ApiModelProperty(value = "校区")
    private String campusId;
	/**院系*/
	@Excel(name = "院系", width = 15)
    @Dict(dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @ApiModelProperty(value = "院系")
    private String facultyId;
	/**楼宇*/
	@Excel(name = "楼宇", width = 15)
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
    @ApiModelProperty(value = "楼宇")
    private String buildingId;
	/**单元*/
	@Excel(name = "单元", width = 15)
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
    @ApiModelProperty(value = "单元")
    private String unitId;
	/**楼层*/
	@Excel(name = "楼层", width = 15)
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
    @ApiModelProperty(value = "楼层")
    private String layerId;
	/**房间*/
	@Excel(name = "房间", width = 15)
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
    @ApiModelProperty(value = "房间")
    private String roomId;
	/**学生*/
	@Excel(name = "学生", width = 15)
    @Dict(dicCode = "id",dicText = "student_name",dictTable = "lwgy_base_student")
    @ApiModelProperty(value = "学生")
    private String studentId;
    /**学号*/
    @Excel(name = "学号", width = 15)
    @Dict(dicCode = "id",dicText = "student_number",dictTable = "lwgy_base_student")
    @ApiModelProperty(value = "学号")
    private String studentNumber;
    /**校区*/
    @Excel(name = "校区", width = 15)
    @Dict(dicCode = "id",dicText = "student_campus",dictTable = "lwgy_base_school")
    @ApiModelProperty(value = "校区")
    private String studentCampus;

    /**院系*/
    @Excel(name = "院系", width = 15)
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_school")
    @ApiModelProperty(value = "院系")
    private String studentCollege;

    /**年级*/
    @Excel(name = "年级", width = 15)
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_school")
    @ApiModelProperty(value = "年级")
    private String studentYear;

    /**专业*/
    @Excel(name = "专业", width = 15)
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_school")
    @ApiModelProperty(value = "专业")
    private String studentMajor;

    /**班级*/
    @Excel(name = "班级", width = 15)
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_school")
    @ApiModelProperty(value = "班级")
    private String studentClass;

    /**学历*/
    @TableField(exist = false)
    @Excel(name = "学历", width = 15)
    @Dict(dicCode = "student_education")
    @ApiModelProperty(value = "学历")
    private String studentEducation;

    /**学制*/
    @TableField(exist = false)
    @Excel(name = "学制", width = 15)
    @Dict(dicCode = "student_school_system")
    @ApiModelProperty(value = "学制")
    private String studentSchoolSystem;

    /**离校时间*/
    @TableField(exist = false)
    @Excel(name = "离校时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "离校时间")
    private Date studentLeaveschool;

    /**开始时间*/
    @TableField(exist = false)
    @Excel(name = "开始时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间")
    private Date studentLeaveschool_begin;

    /**结束时间*/
    @TableField(exist = false)
    @Excel(name = "结束时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间")
    private Date studentLeaveschool_end;

    /**学生状态*/
    @Excel(name = "学生状态", width = 15)
    @Dict(dicCode = "student_state")
    @ApiModelProperty(value = "学生状态")
    private String studentState;
    /**辅导员*/
    @Excel(name = "辅导员", width = 15)
    @Dict(dicCode = "id",dicText = "student_teacher",dictTable = "lwgy_base_student")
    @ApiModelProperty(value = "辅导员")
    @TableField(exist = false)
    private String studentTeacher;

	/**床位名*/
	@Excel(name = "床位名", width = 15)
    @ApiModelProperty(value = "床位名")
    private String name;
	/**床位号*/
	@Excel(name = "床位号", width = 15)
    @ApiModelProperty(value = "床位号")
    private String bedCode;
	/**床位价格*/
	@Excel(name = "床位价格", width = 15)
    @ApiModelProperty(value = "床位价格")
    private String bedPrice;
    /**房间朝向*/
    @TableField(exist = false)
    @Excel(name = "房间朝向", width = 15, dicCode = "room_orientation")
    @Dict(dicCode = "room_orientation")
    @ApiModelProperty(value = "房间朝向")
    private String roomOrientation;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

    @ApiModelProperty(value = "内码")
    private String innerCode;


    @TableField(exist = false)
    private boolean existFlag  = true;

    @TableField(exist = false)
    private String type;

    @TableField(exist = false)
    @Dict(dicCode = "sex")
    private String roomSex;
    @Excel(name = "管理员", width = 15)
    @Dict(dicCode = "username",dicText = "realname",dictTable = "sys_user")
    private String adminId;

    @TableField(exist = false)
    private String campusName;
    @TableField(exist = false)
    private String buildingName;
    @TableField(exist = false)
    private String unitName;
    @TableField(exist = false)
    private String layerName;
    @TableField(exist = false)
    private String roomName;
    @TableField(exist = false)
    private String bedName;

    @TableField(exist = false)
    private String collegeName;
    @TableField(exist = false)
    private String yearName;
    @TableField(exist = false)
    private String majorName;
    @TableField(exist = false)
    private String className;
    /**
     * 删除状态（0，正常，1已删除）
     */
    @Excel(name = "删除状态", width = 15,dicCode="del_flag")
    @Dict(dicCode = "del_flag")
    @TableLogic
    private String delFlag;
    /**假期学生*/
    @Excel(name = "假期学生", width = 15)
    @Dict(dicCode = "id",dicText = "student_name",dictTable = "lwgy_base_student")
    @ApiModelProperty(value = "假期学生")
    private String holidayStudentId;


    private String totalScore;
    private String remark;

    /**打分批次*/
    @Excel(name = "打分批次", width = 15)
    @TableField(exist = false)
    @Dict(dictTable = "lwgy_setting_sanitation", dicText = "batch_name", dicCode = "id")
    @ApiModelProperty(value = "打分批次")
    private String scaleBatches;

    /**确认状态*/
    @TableField(exist = false)
    @Excel(name = "确认状态", width = 15,dicCode = "success_state")
    @Dict(dicCode = "success_state")
    @ApiModelProperty(value = "确认状态")
    private java.lang.String successState;

    @TableField(exist = false)
    @ApiModelProperty(value = "照片")
    private String scenePhoto;

    //标记床位状态，0，正常状态，1假期状态
    private String status;

    /** 2022.5.9,每日获取每人的剩余电量，用作导出毕业生的时候剩余电量的查询，调宿舍调电量等功能*/
    @TableField(exist = false)
    @ApiModelProperty(value = "剩余收费电量")
    private String stateCharge;
    /** 2022.5.24,每日获取每人的免费电量的剩余电量*/
    @TableField(exist = false)
    @ApiModelProperty(value = "剩余免费电量")
    private String stateFreeCharge;
    /** 更新剩余电量的时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "剩余电量更新时间")
    @TableField(exist = false)
    private Date chargeUpdateTime;
    @TableField(exist = false)
    @ApiModelProperty(value = "房间编号")
    private String roomNumber;

}
